"""bysms URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include

# 静态文件服务
from django.conf.urls.static import static

###主路由表
urlpatterns = [
                  path('admin/', admin.site.urls),

                  # 本来是这样的
                  # path('sales/orders/', listorders),  # 其实就是什么样的http请求，由什么样的函数去处理
                  # path('sales/orders1/', listorders1),
                  # path('sales/orders2/', listorders2),
                  # path('sales/orders3/', listorders3),

                  path('sales/', include('sales.urls')),  # 接下来会去找二级的路由信息。incline指定另外一张路由表：绑定以叫sales的app，再去查这里面的urls文件

                  path('api/mgr/', include('mgr.urls'))  # 由叫mgr的app下的urls文件去处理路由前缀为api/mgr/的请求

              ] + static("/", document_root="./z_dist")

